﻿//初始化
if (typeof ($) != "undefined") {
    $(document).ready(function () {
        //alert("postid:" + getPar1("PostID"))
        var postID = getPar1("postID");
        var postName = getPar1("postName");
        $("#PostID").val(postID)
        $("#PostName").val(postName);
        GetPostNotes(postID);
    });
}

//获取岗位说明
function GetPostNotes(postID) {
    var url = "../Extend/AjaxData/jsonlist.aspx?entity=DatPostNotes&condition=PostID='" + postID + "'";
    $.get(url, function (d, s) {
        var list = eval("(" + d + ")");
        for (var o in list.rows) {
            //debugger;
            var t = list.rows[o].Notes;
            if (typeof (t) != "undefined") {
                $("#Notes").val(t);
            }
        }
    });
}
